﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Users.aspx.cs" Inherits="Users" %>

<%@ Register assembly="BasicFrame.WebControls.BasicDatePicker" namespace="BasicFrame.WebControls" tagprefix="BDP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="styles/users_manage.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width:500px;
            float:left;
            margin-left:50px;
        }
        .style2
        {
            width: 150px;
            vertical-align:top;
        }
        .style3
        {
            width: 350px;
        }
        .style4
        {
            width: 150px;
            vertical-align: top;
            height: 26px;
        }
        .style5
        {
            width: 350px;
            height: 26px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="users_manage">
         
        <table class="style1">
            <tr>
                 <td class="style2">
                  Hình đại diện:
                 </td>
                 <td class="style3">
                      <asp:Image ID="Image1" runat="server" Height="100px" Width="100px" />
                       &nbsp;
                      <asp:FileUpload ID="upload" runat="server" />
                      <br />
                      <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                          ControlToValidate="upload" EnableClientScript="False" 
                          ErrorMessage="File khong phai la hinh..." Font-Overline="True" Font-Size="13px" 
                          ForeColor="Red" 
                          ValidationExpression="^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$ "></asp:RegularExpressionValidator>
                      <br />
                      <asp:Button ID="btnUpload" runat="server" Text="Upload" CssClass="butonup" 
                        ForeColor="White" onclick="btnUpload_Click" />
                       &nbsp;&nbsp;
                     <asp:Label ID="lblMessage" runat="server" Font-Size="13px" ForeColor="Blue"></asp:Label>
                 </td>
            </tr>
            <tr>
                <td class="style2">
                    Tên đăng nhập(*)</td>
                <td class="style3">
                    <asp:TextBox ID="txtUsername" runat="server" Width="269px"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtUsername" 
                ErrorMessage="Vui lòng nhập &quot;Tên đăng nhập&quot;" Font-Size="13px" 
                        ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Mật khẩu(*)</td>
                <td class="style3">
                    <asp:TextBox ID="txtPassword" runat="server" Width="270px" TextMode="Password"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" 
                ErrorMessage="Vui lòng nhập&quot;Mật khẩu&quot;" Font-Size="13px" ForeColor="Red" 
                        ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Họ và tên(*):</td>
                <td class="style3">
                    <asp:TextBox ID="txtFullName" runat="server" Width="270px"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtFullName" ErrorMessage="Vui lòng nhập&quot;Họ tên&quot;" 
                        Font-Size="13px" ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Ngày sinh:</td>
                <td class="style3">
                    <BDP:BasicDatePicker ID="BasicDatePicker1" runat="server" 
                        DateFormat="dd-MM-yyyy" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Gới tính:</td>
                <td class="style3">
                    <asp:RadioButton ID="rdoNam" runat="server" Text="Nam" 
                        GroupName="Gender" />
                     &nbsp;
                    <asp:RadioButton ID="rdoNu" runat="server" Text="Nữ" 
                        GroupName="Gender" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Địa chỉ(*):</td>
                <td class="style3">
                    <asp:TextBox ID="txtAddress" runat="server" Width="270px"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtAddress" ErrorMessage="Vui lòng nhập&quot;Địa chỉ&quot;" 
                        Font-Size="13px" ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Số ĐT(*):</td>
                <td class="style3">
                    <asp:TextBox ID="txtPhone" runat="server" Width="270px"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtAddress" ErrorMessage="Vui lòng nhập&quot;Số ĐT&quot;" 
                        Font-Size="13px" ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
                    <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtPhone" ErrorMessage="Số ĐT chỉ nhập từ 9 - 11" 
                ValidationExpression="^[0-9]{9,11}$" Font-Size="13px" ForeColor="Red" 
                        ValidationGroup="1"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Email(*):</td>
                <td class="style3">
                    <asp:TextBox ID="txtEmail" runat="server" Width="270px"></asp:TextBox>
                    <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Vui lòng nhập&quot;Email&quot;" 
                        Font-Size="13px" ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
                    <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Email không đúng định dạng" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        Font-Size="13px" ForeColor="Red" ValidationGroup="1"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Chức vụ:</td>
                <td class="style3">
                    <asp:DropDownList ID="ddlPosition" runat="server">
                        <asp:ListItem>Admin</asp:ListItem>
                        <asp:ListItem>Manager</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Mô tả:</td>
                <td class="style3">
                    <asp:TextBox ID="txtDescription" runat="server" Width="270px" Height="60px" 
                        TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Loại:</td>
                <td class="style3">
                    <asp:DropDownList ID="ddlTitle" runat="server">
                        <asp:ListItem Value="1">Vip</asp:ListItem>
                        <asp:ListItem Value="2">Thường</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Trạng thái:</td>
                <td class="style5">
                    <asp:RadioButton ID="rdoOn" runat="server" GroupName="status" Text="On" />
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoLock" runat="server" GroupName="status" Text="Lock" />
                </td>
            </tr>
        </table>
        <div class="buton">
            <asp:Button ID="btnThem" runat="server" CssClass="bton" Font-Bold="True" 
                ForeColor="White" Height="25px" Text="Thêm" Width="80px" 
                onclick="btnThem_Click" ValidationGroup="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnSua" runat="server" CssClass="bton" Font-Bold="True" 
                ForeColor="White" Height="25px" Text="Sửa" Width="80px" 
                ValidationGroup="1" onclick="btnSua_Click" />
            <br />
            <div id="message">
               <span>
                   <asp:Panel ID="Panel1" runat="server" Height="30px" Width="300px" Visible="false">
                      <img  src="images/icon success.jpg"/>
                      <span style="width:240px; height:24px; margin:2px 0px 0px 30px; color:Blue">
                          <asp:Label ID="lblSuccess" runat="server" Text=""></asp:Label> 
                      </span>
                   </asp:Panel>
               </span>
               <span>
                <asp:Panel ID="Panel2" runat="server" Height="30px" Width="300px" Visible="false">   
                     <img src="images/icon false.jpg"/>
                     <span style="width:240px; height:24px; margin:2px 0px 0px 30px; color:Red">
                         <asp:Label ID="lblFalse" runat="server" Text=""></asp:Label>
                     </span>
                </asp:Panel>
               </span>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
